<template>
  <div>
    <div class="component-mainHeader">
      <div class="top">
        <div class="topleft">
          <p>
            <span class="iconfont" style="color:#1abc9a;margin-right:3px;">&#xe607;</span>建项审批详情
          </p>
        </div>
        <div class="topright">
          <el-button type="info" @click="$router.go(-1)">
            <span style="font-weight:700;margin-right:5px;" class="iconfont">&#xe606;</span>返回
          </el-button>
        </div>
      </div>
    </div>
    <div class="main">
      <div class="nav">建项审批详情</div>
      <div class="step-container">
        <el-steps :active="step" align-center>
          <el-step title="建项" description="操作人id 已通过 2019-03-06"></el-step>
          <el-step title="项目经理审批" description="操作人id 已派单 2019-03-07"></el-step>
          <el-step title="管理部" description="操作人id 已进场 2019-03-08"></el-step>
          <el-step title="管理部副总经理" description="操作人id 进行中"></el-step>
          <el-step title="管理部boss" description="操作人id 等待中"></el-step>
          <el-step title="建项通过" description="操作人id 等待中"></el-step>
        </el-steps>
      </div>

      <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick" class="tabs">
        <el-tab-pane label="项目信息" name="first">
          <div class="tables">
            <table cellpadding="0" cellspacing="0" border="1">
              <tr><td>项目编号</td><td>11</td></tr>
              <tr><td>项目内部编码</td><td>11</td></tr>
              <tr><td>所属合同类型</td><td>22</td></tr>
              <tr><td>项目名称</td><td>33</td></tr>
              <tr><td>委托日期</td><td>44</td></tr>
              <tr><td>项目负责人</td><td>55</td></tr>
              <tr><td>项目专业</td><td>66</td></tr>
              <tr><td>订单编号</td><td>66</td></tr>
              <tr><td>项目部</td><td>66</td></tr>
              <tr><td>业主</td><td>66</td></tr>
              <tr><td>经营模式</td><td>66</td></tr>
              <tr><td>项目地址</td><td>66</td></tr>
              <tr><td>类别</td><td>66</td></tr>
            </table>
          </div>
        </el-tab-pane>
        <el-tab-pane label="项目资料" name="second">
          <el-table :data="projectInfo" tooltip-effect="dark" style border>
            <el-table-column label="序号" align="center" width="100" type="index"></el-table-column>
            <el-table-column label="文件名称" align="center" width="230" prop="profession"></el-table-column>
            <el-table-column label="上传时间" align="center" prop="kinds"></el-table-column>
            <el-table-column label="上传人" align="center" width="230" prop="num1"></el-table-column>
            <el-table-column label="操作" align="center" width="230" prop="contain"></el-table-column>
          </el-table>
        </el-tab-pane>
        <el-tab-pane label="工程量管理" name="third">
          <div class="gcl">
            <div class="title">线路队</div>
            <el-table :data="infodetail" tooltip-effect="dark" style border>
              <el-table-column label="序号" align="center" width="100" type="index"></el-table-column>
              <el-table-column label="定额编号" align="center" width="210" prop="num1"></el-table-column>
              <el-table-column label="施工内容" align="center" prop="contain"></el-table-column>
              <el-table-column label="单位" align="center" width="210" prop="dan"></el-table-column>
              <el-table-column label="预算数量" align="center" width="210" prop="num2"></el-table-column>
            </el-table>
          </div>
          <div class="gcl">
            <div class="title">管道队</div>
            <el-table :data="infogl" tooltip-effect="dark" style border>
              <el-table-column label="序号" align="center" width="100" type="index"></el-table-column>
              <el-table-column label="定额编号" align="center" width="210" prop="num1"></el-table-column>
              <el-table-column label="施工内容" align="center" prop="contain"></el-table-column>
              <el-table-column label="单位" align="center" width="210" prop="dan"></el-table-column>
              <el-table-column label="预算数量" align="center" width="210" prop="num2"></el-table-column>
            </el-table>
          </div>
          <div class="gcl">
            <div class="title">设备队</div>
            <el-table :data="infogl" tooltip-effect="dark" style border>
              <el-table-column label="序号" align="center" width="100" type="index"></el-table-column>
              <el-table-column label="定额编号" align="center" width="210" prop="num1"></el-table-column>
              <el-table-column label="施工内容" align="center" prop="contain"></el-table-column>
              <el-table-column label="单位" align="center" width="210" prop="dan"></el-table-column>
              <el-table-column label="预算数量" align="center" width="210" prop="num2"></el-table-column>
            </el-table>
          </div>
          <div class="gcl">
            <div class="title">熔纤队</div>
            <el-table :data="infogls" tooltip-effect="dark" style border>
              <el-table-column label="序号" align="center" width="100" type="index"></el-table-column>
              <el-table-column label="定额编号" align="center" width="210" prop="num1"></el-table-column>
              <el-table-column label="施工内容" align="center" prop="contain"></el-table-column>
              <el-table-column label="单位" align="center" width="210" prop="dan"></el-table-column>
              <el-table-column label="预算数量" align="center" width="210" prop="num2"></el-table-column>
            </el-table>
          </div>
        </el-tab-pane>
        <el-tab-pane label="材料管理" name="fiveth">
          <div class="material-manage">
            <div class="budget-material">
              <div class="search-header">
                <div class="left-title">
                  <p class="left-text">
                    <span class="iconfont">&#xe607;</span>
                    预算材料
                  </p>
                  <div class="right">
                  </div>
                </div>
              </div>
              <div class="table">
                <el-table
                  ref="multipleTable"
                  :data="lineInfo"
                  tooltip-effect="dark"
                  style="width: 1100px;margin:0 auto"
                  border
                >
                  <el-table-column label="序号" align="center" width="220" prop></el-table-column>
                  <el-table-column label="器材名称" align="center" width="140" prop></el-table-column>
                  <el-table-column label="规格程式" align="center" width="140" prop></el-table-column>
                  <el-table-column label="单位" align="center" prop></el-table-column>
                  <el-table-column label="数量" align="center" width="140" prop></el-table-column>
                  <el-table-column label="供方" align="center" width="140" prop></el-table-column>
                </el-table>
              </div>
            </div>
          </div>
        </el-tab-pane>
        <el-tab-pane label="造价管理" name="sixth">
          <div class="costManage">
            <div class="left">
              <div class="cost">公司造价</div>
              <div style="float: left;"><span><i>*</i>预算金额：</span><input/></div>
              <div style="float: left;"><span><i>*</i>利润值：</span><input/></div>
              <div style="clear: both;"></div>
            </div>
          </div>
          <div class="budgets">
            <div class="budget">
              <div class="title">预算明细</div>
              <div></div>
            </div>
            <div class="budgetTable">
              <table cellpadding="0" cellspacing="0" border="1">
                <tr>
                  <td>甲购材料费</td><td>项施工费（不含乙购材料费、规费）</td><td>乙购材料费</td><td>规费</td><td>设计费</td><td>监理量</td><td>安全生产费</td><td>协调费</td><td>零星录入费</td><td>用户资源录入费</td><td>投资小计</td><td>业主造价</td><td>公司造价</td>
                </tr>
                <tr>
                  <td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
                </tr>
              </table>
            </div>
          </div>
        </el-tab-pane>
        <el-tab-pane label="预算绘图" name="seventh">
          预算绘图
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        step: 3,//   进度管理 data
        activeName:'first',
        //项目资料
        projectInfo:[{ //工程量管理-工程量明细
          num:'111',
          profession:'222',
          kinds:'333',
          num1:'444',
          contain:'555',
          dan:'666',
          num2:'777',
          num3:'888',
          num4:'999'
        }],
        //线路队
        infodetail:[{ //工程量管理-工程量明细
          num:'111',
          profession:'222',
          kinds:'333',
          num1:'444',
          contain:'555',
          dan:'666',
          num2:'777',
          num3:'888',
          num4:'999'
        }],
        //设备队
        infogl:[{ //光缆段长表
          num:'111',
          profession:'222',
          kinds:'333',
          num1:'444',
          contain:'555',
          dan:'666',
          num2:'777',
          num3:'888',
          num4:'999'
        }],
        //熔纤队
        infogls:[{ //光缆段长表
          num:'111',
          profession:'222',
          kinds:'333',
          num1:'444',
          contain:'555',
          dan:'666',
          num2:'777',
          num3:'888',
          num4:'999'
        }],
        lineInfo: [],
        equipmentInfo: [],
        pipePage: {
          pageSize: 4,
          rowCount: 12,
          currentPage: 1
        },
        linePage: {
          pageSize: 3,
          rowCount: 12,
          currentPage: 2
        },
      };
    },
    created(){

    },
    mounted(){

    },
    methods: {
      //tab切换
      handleClick(tab, event) {
//            console.log(tab, event);
      },
    },
    watch: {}

  };
</script>
<style scoped>
  .main{
    width: 1100px;
    margin: 20px auto;
    box-sizing: border-box;
    border:1px solid #e4e4e4;
    font-size: 14px;
  }
  .main .nav{
    height: 40px;
    line-height: 40px;
    padding-left: 20px;
    text-align: left;
    background: #F3F3F3;
    color: #666;
    border-bottom: 1px solid #e4e4e4;
    margin-bottom: 30px;
  }
  .step-container{
    margin-bottom: 60px;
  }
  .gcl{
    margin-bottom: 20px;
  }
  .tabs{
    width: 1060px;
    margin: 20px auto;
  }
  .budget{
    margin-top: 20px;
    width: 100%;
    overflow: hidden;
    background: #F8F8F8;
    height: 35px;
    line-height: 35px;
    font-size: 14px;
    border:1px solid #e4e4e4;
    border-bottom:none;
    padding: 0 20px;
    box-sizing: border-box;
    font-size: 14px;
    color: #666;
  }
  .gcl .title{
    background: #F8F8F8;
    height: 35px;
    line-height: 35px;
    color: #666;
    padding: 0 20px;
    font-size: 14px;
    border:1px solid #e4e4e4;
    border-bottom:none;
    text-align: left;
  }
  .budget .title{
    float: left;
  }
  .budget div:last-of-type{
    float: right;
  }
  .gcl .tabs{
    width: 1060px;
    margin: 20px;
    box-sizing: border-box;
  }
  .nav{
    background: #F8F8F8;
    height: 50px;
    font-size: 14px;
    line-height: 50px;
    border-bottom:1px solid #e4e4e4;
    text-align: left;
    padding-left: 20px;
    font-size: 14px;
    color: #666;
  }
  .tables table{
    width: 660px;
    border-collapse:collapse;
    border-spacing:0;
    margin:0;
    padding:0;
    border:none;
    font-size: 12px;
  }
  .budgetTable table{
    width: 100%;
    border-collapse:collapse;
    border-spacing:0;
    margin:0;
    padding:0;
    border:none;
    font-size: 12px;
  }
  .budgetTable table td{
    width: 500px;
    height: 40px;
  }
  .tables table td{
    height: 44px;
  }
  .tables table td:nth-of-type(2n){
    text-align: left;
    padding-left: 20px;
  }
  .tables table td:nth-of-type(2n+1){
    text-align: right;
    padding-right: 20px;
    width: 160px;
    background: #F9FAFC;
  }
  .costManage{
    overflow: hidden;
    font-size: 14px;
  }
  .costManage .left,.costManage .right{
    float: left;
  }
  .costManage .left{
    margin-right: 60px;
  }
  .costManage .cost{
    text-align: left;
    color: #949494;
    margin-bottom: 10px;
  }
  .costManage .left span,.costManage .right span{
    display: inline-block;
    width: 100px;
    text-align: right;
    padding-right: 10px;
    height: 30px;
    color: #666;
    font-size: 12px;
  }
  .costManage .left span i,.costManage .right span i{
    color: red;
    vertical-align: middle;
    font-style: normal;
    padding-right: 2px;
  }
  .costManage .left input,.costManage .right input{
    height: 30px;
    padding-left: 5px;
    outline: none;
    border:1px solid #E4E4E4;
    border-radius: 2px;
  }

  /* 下面是进度管理的样式 */
  .step-container {
    margin: 20px auto;
  }
  .table-title p {
    font-family: "PingFangSC-Regular", "PingFang SC";
    font-weight: 400;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
    font-kerning: normal;
    font-size: 16px;
    color: #666;
    text-align: left;
    line-height: 40px;
  }

  .tables table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
    padding: 0;
    border: none;
    font-size: 12px;
  }
  .tables table td {
    height: 44px;
  }
  .tables table td:nth-of-type(2n) {
    text-align: left;
    padding-left: 20px;
    /* width: 332px; */
  }
  .pipe-progress .tables table td:nth-of-type(2n),
  .line-progress .tables table td:nth-of-type(2n),
  .equipment-progress .tables table td:nth-of-type(2n) {
    width: 332px;
  }
  .tables table td:nth-of-type(2n + 1) {
    text-align: right;
    padding-right: 20px;
    width: 160px;
    background: #f9fafc;
  }

  .component-paging .table-bottom,
  .component-paging .table-bottom,
  .component-paging .table-bottom {
    width: 100%;
    margin-bottom: 20px;
  }

  .pipe-progress .table,
  .line-progress .table,
  .equipment-progress .table {
    margin-top: 20px;
  }

  /* 材料管理 */
  .material-manage .search-header {
    width: 1028px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 1);
    margin: 20px auto 0;
  }

  .material-manage .search-header .left-title {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background-color: rgba(243, 243, 243, 1);
    height: 45px;
    box-sizing: border-box;
    border: 1px solid rgba(228, 228, 228, 1);
    border-bottom: 0;
  }

  .material-manage .search-header .left-title .left-text {
    width: 20%;
    color: #666;
    font-size: 14px;
    line-height: 45px;
    font-weight: 700;
    text-align: left;
    margin: 0 0 0 30px;
  }

  .material-manage .right {
    width: 70%;
    display: flex;
    justify-content: flex-end;
    margin-right: 30px;
  }

  .material-manage .right button {
    padding: 0 15px;
    height: 30px;
    margin: 6px 5px;
    line-height: 30px;
    font-size: 14px;
    color: #666;
    background-color: #fff;
    border: 1px solid #ccc;
  }

  .material-manage .right button:hover {
    background-color: #f3f3f3;
  }

  /* 资料归档 */
  .data-back-sign,
  .owner-data,
  .design-check-data,
  .process-manage-data,
  .project-finish-data,
  .official-data,
  .move-system-data {
    margin: 20px auto;
  }
  .table-title-left {
    color: #1abc9c;
    font-size: 16px;
    float: right;
  }

  .gray{
    color: #ccc;
  }

  /* 删除按钮 */
  .red {
    color: #48c9b0;
    font-size: 12px;
  }

  .data-back-sign .tables table td:nth-of-type(2n + 1) {
    text-align: right;
    padding-right: 20px;
    width: 110px;
    background: #f9fafc;
  }

  .move-system-msg .tables table td:nth-of-type(2n + 1) {
    text-align: right;
    padding-right: 20px;
    width: 140px;
    background: #f9fafc;
  }

  .table-title>div:last-of-type{
    float: right;
    margin: -45px 20px 10px;
  }
  .table-title>div:last-of-type span{
    display: inline-block;
    margin-left: 20px;
    padding: 5px 20px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 4px;
  }
  .table-title>div:last-of-type span:first-of-type{
    border:1px solid #e4e4e4;
    color: #666;
    background: #fff;
  }
  .table-title>div:last-of-type span:last-of-type{
    border:1px solid #1ABC9C;
    color: #fff;
    background: #1ABC9C;
  }
</style>
